package com.itheima.a10demopolymorphsm;

public class Dog extends Animal{
    public void lookHome(){
        System.out.println("狗看家");
    }

    public Dog(int age, String color){
        super(age, color);
    }

    @Override
    public void eat(String food) {
        System.out.println("年龄为" + getAge() + "岁的" + getColor() + "的🐕两只前腿死死的抱着" + food + "猛吃");
    }
}
